import {
  getGoodsGainList,
  addGoodsGain,
  editGoodsGain,
  setGoodsGainStatus,
  newGetGoodsGainTypeMap
} from '@/services/AddServeManage';

export default () => {

  // 获取平台收支列表
  const GetGoodsGainList = (params: any) => {
    return getGoodsGainList(params);
  };

  // 新增增值服务
  const AddGoodsGain = (data: any) => {
    return addGoodsGain(data);
  };

  // 编辑增值服务
  const EditGoodsGain = (data: any) => {
    return editGoodsGain(data);
  };

  // 设置有效/无效
  const SetGoodsGainStatus = (params: any) => {
    return setGoodsGainStatus(params);
  };

  // 获取增值服务类型集合
  const NewGetGoodsGainTypeMap = (params: any) => {
    return newGetGoodsGainTypeMap(params);
  };

  return {
    GetGoodsGainList,
    AddGoodsGain,
    EditGoodsGain,
    SetGoodsGainStatus,
    NewGetGoodsGainTypeMap,
  };
};
